package net.zhnb.service.impl;

import java.math.BigDecimal;

import javax.annotation.Resource;

import net.zhnb.bean.Tag;
import net.zhnb.bean.TagKey;
import net.zhnb.dao.TagDao;
import net.zhnb.service.TagService;
import finaler.util.Page;
import finaler.util.PageList;

public class TagServiceImpl implements TagService {

	@Resource
	private TagDao tagDao;

	@Override
	public PageList getPageList(Page page) throws Exception {
		return tagDao.getPageList(page);
	}

	@Override
	public boolean insert(Tag tag) throws Exception {
		return tagDao.insert(tag);
	}

	@Override
	public boolean deleteByKey(TagKey key) throws Exception {
		return tagDao.deleteByKey(key);
	}

	@Override
	public Tag findByKey(TagKey key) throws Exception {
		return tagDao.findByKey(key);
	}

	@Override
	public boolean update(Tag tag) throws Exception {
		return tagDao.update(tag);
	}

	@Override
	public boolean deleteByShowerId(BigDecimal showerId) throws Exception {
		return tagDao.deleteByShowerId(showerId);
	}
	
}
